/**
 * @fileOverview svg容器
 */

var Icon = gg.createClass({
    attributes: {
        data:{
            type:'datatype.String',
            label:'svg数据',
            defaultValue:'',
            setter:function(v){
                this.defaultSetter('data', v);
                this.node.attr('src', 'data:' + v);
            }
        }
    },
    methods: {
        /**
         * @override
         */
        createNode: function() {
            return $('<img>');
        }
    },
    events: {}
}, 'ui.svg.Shape', []);

delete Icon.metadata['stroke'];
delete Icon.metadata['fill'];
delete Icon.metadata['strokeWidth'];

module.exports = Icon;